﻿namespace Devonline.Identity;

/// <summary>
/// identity service access token
/// </summary>
public class IdentityToken
{
    /// <summary>
    /// 令牌类型
    /// </summary>
    public string TokenType { get; set; } = AppSettings.DEFAULT_AUTHENTICATION_SCHEME;
    /// <summary>
    /// 访问令牌
    /// </summary>
    public string? AccessToken { get; set; }
    /// <summary>
    /// 刷新令牌
    /// </summary>
    public string? RefreshToken { get; set; }
    /// <summary>
    /// 过期时间
    /// </summary>
    public int ExpiresIn { get; set; } = AppSettings.UNIT_SECONDS_AN_HOUR;
    /// <summary>
    /// scope
    /// </summary>
    public string? Scope { get; set; }
}